package com.atguigu.gmall.payment.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * projectName: gmall
 *
 * @author: 陈鹏
 * time: 2022/10/15 19:05 星期六
 * description: 支付宝支付的feign的api
 */
@FeignClient(name = "service-payment",path = "/zfb/pay",contextId = "zfbPayFeign")
public interface ZfbPayFeign {

    /**
     * 获取支付宝支付页面的api
     * @param body
     * @param orderId
     * @param money
     * @return
     */
    @GetMapping(value = "/getPayPage")
    public String getPayPage(@RequestParam String body,
                             @RequestParam String orderId,
                             @RequestParam String money);

    /**
     * 查询订单的支付结果
     * @param orderId
     * @return
     */
    @GetMapping("/getPayResult")
    public String getPayResult(@RequestParam String orderId);
}
